package org.mm.repository;

import java.util.List;

import org.mm.model.Sensor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface SensorRepository extends PagingAndSortingRepository<Sensor, Long> {

	@Query("select s from Sensor s where s.patient.patientId = ?1")
	public List<Sensor> findByPatientId(Long patientId) throws Exception;

}
